import 'package:flutter/material.dart';
import '../demo/message.dart';
import 'package:get/get.dart';
class BasePage extends StatefulWidget {
  const BasePage({super.key});

  @override
  State<BasePage> createState() => _BasePageState();
}

class _BasePageState extends State<BasePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          children: [
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, '/getxDialog');
            }, child: Text('GetXDialog')),
            ElevatedButton(onPressed: (){
              Get.toNamed('/obx');
            }, child: Text('obx'))
          ],
        ),
      ),
    );
  }
}
